package com.emm.yixun.report.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.emm.yixun.report.domain.BrokerRanking;
import com.emm.yixun.report.domain.dto.BrokerRankingEntity;
import com.baomidou.mybatisplus.mapper.AutoMapper;

/**
 *
 * BrokerRanking 表数据库控制层接口
 *
 */
public interface BrokerRankingMapper extends AutoMapper<BrokerRanking> {
	/**
	 * 经纪人业绩排行榜
	 * @param merchantId
	 * @return
	 */
	public List<BrokerRankingEntity> selectBrokerRankingInfo(@Param("merchantId")long merchantId,@Param("cityId")String cityId);
	
	/**
	 * 经纪人业绩排行榜 查询当前商户下的城市列表
	 * @param merchantId
	 * @return
	 */
	public List<BrokerRankingEntity> selectCityListByMerchantId(@Param("merchantId")long merchantId);
	
}